package com.github.kezhenxu94.crawler.source.rss;

/**
 * Created by kezhenxu on 12/4/16.
 *
 * @author kezhenxu (kezhenxu94@163.com)
 */
public interface Rss2ElementNames {
    String CHANNEL = "channel";

    interface Channel {
        // required elements
        String TITLE = "title";
        String LINK = "link";
        String DESCRIPTION = "description";
        // optional elements
        String LANGUAGE = "language";
        String COPYRIGHT = "copyright";
        String MANAGING_EDITOR = "managingEditor";
        String WEB_MASTER = "webMaster";
        String PUB_DATE = "pubDate";
        String LAST_BUILD_DATE = "lastBuildDate";
        String CATEGORY = "category";
        String GENERATOR = "generator";
        String DOCS = "docs";
        String CLOUD = "cloud";
        String TTL = "ttl";
        String IMAGE = "image";
        String RATING = "rating";
        String TEXT_INPUT = "textInput";
        String SKIP_HOURS = "skipHours";
        String SKIP_DAYS = "skipDays";
        String ITEM = "item";

        interface Image {
            String URL = "url";
            String TITLE = "title";
            String LINK = "link";
            String WIDTH = "width";
            String HEIGHT = "height";
            String DESCRIPTION = "description";
        }

        interface Item {
            String TITLE = "title";
            String LINK = "link";
            String DESCRIPTION = "description";
            String AUTHOR = "author";
            String CATEGORY = "category";
            String COMMENTS = "comments";
            String ENCLOSURE = "enclosure";
            String GUID = "guid";
            String PUB_DATE = "pubDate";
            String SOURCE = "source";
        }
    }
}
